'use strict'

module.exports=[
    {
        name:'test'
    },
    {
        //计算请求耗时
        middleware:async(c,next)=>{
            let starttime=Date.now()
            await next()
            let endtime=Date.now()
            console.log(endtime-starttime,'ms');
        }
    }
]